#ifndef CUSTOMMUTEX_H
#define CUSTOMMUTEX_H

#include <QMutex>
#include <QString>

class CustomMutex : public QMutex
{
public:
    CustomMutex(QMutex *parent = 0);

public:
    void lock(const char* file = __FILE__,int line = __LINE__);
    void unlock(const char* file = __FILE__,int line = __LINE__);

private:
    QString lockFile;
    QString unLockFile;
    int lockLine;
    int unLockLine;
};

#endif // CUSTOMMUTEX_H
